{% extends 'base.html' %}

{% block scripts %}
	<script type="text/javascript" src="/static/scripts/home.js"></script>
{% end %}

{% block sidebar %}
<div style="height: 50px; margin-bottom:10px;margin-right:13px;">
	<div class="rss-icon"><img src="/static/images/Newspaper_Feed_add_48x48.png" /></div>
	<div class="rss-text">
		<a type="application/rss+xml" rel="alternate" href="http://feeds.feedburner.com/rockmaple">订阅</a>
	</div>
</div>
{{ modules.TagCloud(tags) }}
<div style="margin-left:-0.6em;margin-right:0.4em">
	<script type="text/javascript" src="https://www.google.com/reader/ui/publisher-en.js"></script>
	<script type="text/javascript" src="https://www.google.com/reader/public/javascript/user/12398935471779015285/state/com.google/broadcast?n=6&callback=GRC_p(%7Bc%3A%22green%22%2Ct%3A%22rockmaple's%20shared%20items%22%2Cs%3A%22false%22%2Cb%3A%22false%22%7D)%3Bnew%20GRC"></script>
</div>
<div style="margin-top:0.5em;margin-bottom:0.5em;">
	<img src="/static/images/gmail.png" />
</div>
<img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" alt="Powered by Google App Engine" />
{% end %}

{% block main_content %}
<div id="main-content">
	{% for entry in page.object_list %}
	  {{ modules.Entry(entry) }}
	{% end %}
	<ul id="pagination">
	    {% if page.has_previous%}
	    	<li class="previous"><a href="/?p={{ page.previous_page_number }}">«前一页</a></li>
	    {% end %}
	    {% if page.has_next %}
	        <li class="next"><a href="/?p={{ page.next_page_number}}">后一页»</a></li>
	    {% end %}
	</ul>
</div>
{% end %}